﻿#if UNITY_EDITOR

using UnityEngine;

namespace AI.Graph.Editor {


    public struct EditorColor {

        private Color personal;
        private Color professional;

        public Color color {
            get {
                if (AIGraphPreferences.skin == AIGraphPreferences.Skin.Personal) {
                    return personal;
                }

                if (AIGraphPreferences.skin == AIGraphPreferences.Skin.Professional) {
                    return professional;
                }

                if (UnityEditorInternal.InternalEditorUtility.HasPro ()) {
                    return professional;
                }

                return personal;
            }
        }

        public EditorColor (Color color) : this (color, color) { }


        public EditorColor (Color personal, Color professional) {
            this.personal = personal;
            this.professional = professional;
        }

    }


}
#endif